package com.hm.jiaowuxitong.service;

import com.hm.jiaowuxitong.dao.IStudentDao;
import com.hm.jiaowuxitong.dao.StudentDaoImp;

import java.util.List;
import java.util.Map;

public class StudentServiceImp implements IStudentService {

    IStudentDao dao=new StudentDaoImp();
    @Override
    public int addStudent(Map<String, Object> oMap) {
        return dao.insertStudent(oMap);
    }

    @Override
    public List<Map<String, Object>> getStudents() {
        return dao.selectStudents();
    }
    @Override
    public List<Map<String, Object>> HgetUser(String id) {
        return dao.HselectStudent(id);
    }

    @Override
    public int HaddStudent(Map<String, Object> oMap) {
        return dao.HinsertStudent(oMap);
    }

    @Override
    public int ChangeStudentPassword(Map<String, Object> oMap) {return dao.ChangeStudentPassword(oMap);}

    @Override
    public List<Map<String, Object>> getStudents1(String id) {
        return dao.selectStudents1(id);
    }


}
